package com.ruoyi.quartz.task;

import com.ruoyi.mdm.service.ISkuSampleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import static com.ruoyi.common.utils.SecurityUtils.getUsername;

/**
 * 小样价格计算
 *
 * @author Shiseido
 */
@Component("skuSamplePriceCal")
public class SkuSamplePriceCalTask {

    @Autowired
    private ISkuSampleService skuSampleService;

    public void skuSamplePriceCal(String ownerId) {
//        String operName = getUsername();
        String operName = "system";
        skuSampleService.skuSampleCalPrice(ownerId, operName);
    }

}
